.file-upload-list-container {
  width: 360px;
  overflow: hidden;
  position: relative;

  .collapse-card {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px dashed #d9d9d9;
    gap: 8px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    user-select: none;
    z-index: 1000;
    position: relative;

    &::before {
      content: "";
      left: 0px;
      bottom: 0px;
      width: var(--progress);
      height: 2px;
      background-color: #1890ff;
      position: absolute;
    }

    .status-icon {
      font-size: 14px;
      color: rgba(37, 38, 43, 0.72);
      transition: all 0.3s ease-in-out;

      &:where(.uploading) {
        color: #1890ff;
      }
    }

    .description {
      flex-grow: 1;
      font-size: 14px;
      font-weight: 500;
      color: rgba(37, 38, 43);
      padding: 0px 4px;
    }

    .action {
      color: rgba(37, 38, 43, 0.72);
      transition: all 0.3s ease-in-out;

      &:hover {
        color: #1890ff;
      }
    }
  }

  .dropdown-container {
    top: calc(100% + 0px);
    width: 100%;
    height: 0px;
    height: 300px;
    background-color: #fff;
    border: 0px solid #d9d9d9;
    // border-top-color: transparent;
    z-index: 1000;
    position: absolute;
    opacity: 0;
    padding: 8px 0px;
    transition: all 0.2s ease-in-out;
  }

  &.collapse {
    // box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    overflow: visible;

    .collapse-card {
      z-index: 2000;
      // border-style: solid;
      border-radius: 0px;
      background-color: #fff;
    }

    .dropdown-container {
      top: calc(100% + 8px);
      z-index: 2000;
      height: 300px;
      border-width: 1px;
      box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
      opacity: 1;
    }
  }
}

.dropdown-container .upload-list {
  width: 100%;
  height: auto;
  padding: 0px 4px;

  .upload-list-item {
    height: auto;
    display: flex;
    align-items: center;
    padding: 4px 12px 6px 12px;
    position: relative;
    cursor: default;

    &:not(:last-child) {
      margin-bottom: 4px;
    }

    &:not(.upload-success):before {
      content: "";
      left: 0px;
      bottom: 0px;
      width: var(--before-progress);
      height: 2px;
      background-color: #1890ff;
      position: absolute;
      transition: width 0.2s linear;
    }

    &:not(.upload-success)::after {
      content: "";
      left: 0px;
      bottom: 0px;
      width: var(--after-progress);
      height: 2px;
      background-color: #52c41a;
      z-index: 1;
      position: absolute;
      transition: width 0.4s linear;
    }

    .icon {
      width: 32px;
      height: 32px;
    }

    .description {
      flex-grow: 1;
      font-size: 14px;
      padding: 0px 8px;

      .info {
        font-size: 12px;
        color: rgba(37, 38, 43, 0.72);
      }
    }

    .aciton-card {
      width: auto;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: right;
      gap: 8px;
      padding: 0px 4px;
      opacity: 0;
      // transition: all 0.3s ease-in-out;

      .action {
        cursor: pointer;
        &:hover {
          color: #1890ff;
        }
      }
    }

    &:hover {
      .aciton-card {
        opacity: 1;
      }
    }
  }
}
